﻿using Mes.Application.DTO.Inputs.Quality;
using Mes.Application.DTO.Results.Quality;
using Mes.Domain.BoundedContext;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mes.Application.Services.Quality
{
    public interface ISampleFreqService
    {
        /// <summary>
        /// 添加采样计划频率
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task AddSampleFreqAsync(AddingSampleFreqInput input);

        /// <summary>
        /// 删除采样计划频率
        /// </summary>
        /// <param name="freq_id">采样计划频率Id</param>
        /// <returns></returns>
        Task DeleteSampleFreqAsync(int freq_id);

        /// <summary>
        /// 编辑采样计划频率
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task UpdateSampleFreqAsync(UpdatingSampleFreqInput input);

        /// <summary>
        /// 查询采样计划频率实体
        /// </summary>
        /// <param name="freq_id">采样计划频率Id</param>
        /// <returns></returns>
        Task<SampleFreqDetailResult> GetSampleFreqAsync(int freq_id);

        /// <summary>
        /// 查询采样计划频率分页列表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<PagedItemsData<SampleFreqResult>> GetSampleFreqsAsync(GettingSampleFreqsInput input);
    }
}
